<?php
	$slide = NULL;
	if ($slides) {
		foreach ($slides as $s) {
			$slide = $s;
			break;
		}
	}
		
?>
<div id='slide'>
	<div class='main_img'>
		<img src='/uploads/cms/big_slide_<? echo ($slide)?($slide['picture']):"" ?>' />
		<div class='bg_main_img'></div>
	</div>
    <div class='logo_2'></div>
	<div class='slide_menu'>
	<?php
		$cnt = 0;
		foreach ($slides as $slide)
		{
			$cnt ++;
		?>
		<div class='slide_menu_item <?=($cnt==1)?"active":""?>' style='<?php echo ($cnt == 1)?"margin-left:0px;":""?>'>
			<img src='/uploads/cms/slide_<? echo $slide['picture'] ?>' />
            <div class='bg_slide_img bg_slide_img_<?php echo $cnt;?>'></div>
		</div>
		<?
		}
	?>
	</div>
</div>

<div class='wrap_datepicker'>
	<div class='title cufon'>
    	Dịch vụ
    </div>
</div>

<div class='wrap_ground'>
	<div class='cms_title'>
    	<?php echo $cms->name ?>
    </div>
    <div class='cms_description'>
    	<?php echo $cms->description ?>
    </div>
    <div class='cms_content'>
    	<?php echo htmlspecialchars_decode($cms->content) ?>
    </div>
    <?
	if (sizeof($cms_others) > 0)
	{
	?>
    <div>
        <div style='font-weight:bold;font-size:12px;padding:10px 0;color:#CC0000;'>Những dịch vụ khác: </div>
        <?
        foreach ($cms_others as $cms_other) {
        ?>
            <div style='line-height:18px;padding-left:10px;'><a class='a_news' href="<?php echo url_for("service/permalink?cms_id=".$cms_other['id']) ?>"><b>&raquo; &nbsp;<?=$cms_other['name']?></b></a></div>
        <?
        }
        ?>
    </div>
    <?
	}
	?>
</div>

<div class='copyright'>
    <div class='body_line'></div>
    <div style='text-align:center'>
        <?php echo htmlspecialchars_decode($copyright) ?>
    </div>
</div>